#ifndef NORMALTOOL_H
#define NORMALTOOL_H

#include <QObject>
#include <functional>
#include "mytypes.h"
class NormalTool final :public QObject
{
    Q_OBJECT
public:
    static NormalTool*  GetInstance(QObject* parent=nullptr);
    virtual ~NormalTool() override;

    std::function<void()> GetToolFunction(Yzty::NormalToolCode code);

private:
    explicit NormalTool(QObject* parent=nullptr);
    static NormalTool* _instance;

public:

    QVector<Yzty::BaceInfor*> GetSoftList();    //获取软件链表
    QVector<Yzty::BaceInfor*> GetIpAddressList();   //获取ip地址信息
    QVector<Yzty::BaceInfor*> GetMirroFile();   //获取镜像文件
    QVector<Yzty::BaceInfor*> GetHostInfo();   //获取主机信息
    QVector<Yzty::BaceInfor*> GetHardPartInfor(); //获取硬盘分区信息
    QVector<Yzty::BaceInfor*> GetPhonePlugInfor();
};

#endif // NORMALTOOL_H
